﻿using FoodModel;
using J.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.FoodRepository.InterFace
{
    public interface ITableNumRepository : IRepository<TableNumModel>
    {
        /// <summary>
        /// 桌号显示
        /// </summary>
        /// <returns></returns>
        Task<List<TableNumModel>> NumShow();
        /// <summary>
        /// 桌号显示id显示
        /// </summary>
        /// <returns></returns>
        Task<List<TableNumModel>> NumIdShow(string? id);
        /// <summary>
        /// 桌号添加
        /// </summary>
        /// <returns></returns>
        Task<int> NumAdd(TableNumModel model);
        /// <summary>
        /// 桌号反填
        /// </summary>
        /// <returns></returns>
        Task<TableNumModel> NumBack(int id);  
        /// <summary>
        /// 桌号修改
        /// </summary>
        /// <returns></returns>
        Task<int> NumUpdate(TableNumModel model);
        /// <summary>
        /// 桌号批量删除
        /// </summary>
        /// <returns></returns>
        Task<int> NumDelete(string id);
        /// <summary>
        /// 桌号批量修改状态
        /// </summary>
        /// <returns></returns>
        Task<int> NumplUpDate(string id);
    }
}
